#pragma once
#include "../CommonUtil/messages.h"
#include "User.h"
#include <stdio.h>
#include <vector>
using namespace std;

class CReservationServer
{
public:
	CReservationServer();
	~CReservationServer(void);

public:
	void start(unsigned short usPort, const char* szDSN);
	void stop();

private:
	static void worker(void* pParam);

private:
	HANDLE m_hServThrd;
	SOCKET m_listenSock;
	vector<CUser*> m_users;
};
